home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / PInterfaces / ConnectionTools.p < prev    next >
Encoding:
Text File  |  1994-11-11  |  3.5 KB  |  157 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ConnectionTools.p
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. }
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT ConnectionTools;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __CONNECTIONTOOLS__}
  27. {$SETC __CONNECTIONTOOLS__ := 1}
  28.  
  29. {$I+}
  30. {$SETC ConnectionToolsIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$IFC UNDEFINED __WINDOWS__}
  35. {$I Windows.p}
  36. {$ENDC}
  37. {    Memory.p                                                    }
  38. {        Types.p                                                    }
  39. {            ConditionalMacros.p                                    }
  40. {        MixedMode.p                                                }
  41. {    Quickdraw.p                                                    }
  42. {        QuickdrawText.p                                            }
  43. {    Events.p                                                    }
  44. {        OSUtils.p                                                }
  45. {    Controls.p                                                    }
  46. {        Menus.p                                                    }
  47.  
  48. {$IFC UNDEFINED __DIALOGS__}
  49. {$I Dialogs.p}
  50. {$ENDC}
  51. {    Errors.p                                                    }
  52. {    TextEdit.p                                                    }
  53.  
  54. {$IFC UNDEFINED __CONNECTIONS__}
  55. {$I Connections.p}
  56. {$ENDC}
  57. {    CTBUtilities.p                                                }
  58. {        StandardFile.p                                            }
  59. {            Files.p                                                }
  60. {        AppleTalk.p                                                }
  61.  
  62. {$PUSH}
  63. {$ALIGN MAC68K}
  64. {$LibExport+}
  65.  
  66. CONST
  67. { messages for DefProc }
  68.     cmInitMsg                    = 0;
  69.     cmDisposeMsg                = 1;
  70.     cmSuspendMsg                = 2;
  71.     cmResumeMsg                    = 3;
  72.     cmMenuMsg                    = 4;
  73.     cmEventMsg                    = 5;
  74.     cmActivateMsg                = 6;
  75.     cmDeactivateMsg                = 7;
  76.     cmIdleMsg                    = 50;
  77.     cmResetMsg                    = 51;
  78.     cmAbortMsg                    = 52;
  79.     cmReadMsg                    = 100;
  80.     cmWriteMsg                    = 101;
  81.     cmStatusMsg                    = 102;
  82.     cmListenMsg                    = 103;
  83.     cmAcceptMsg                    = 104;
  84.     cmCloseMsg                    = 105;
  85.     cmOpenMsg                    = 106;
  86.     cmBreakMsg                    = 107;
  87.     cmIOKillMsg                    = 108;
  88.     cmEnvironsMsg                = 109;
  89. { new connection tool messages for ctb 1.1 }
  90.     cmNewIOPBMsg                = 110;
  91.     cmDisposeIOPBMsg            = 111;
  92.     cmGetErrorStringMsg            = 112;
  93.     cmPBReadMsg                    = 113;
  94.     cmPBWriteMsg                = 114;
  95.     cmPBIOKillMsg                = 115;
  96. {    messages for validate DefProc    }
  97.     cmValidateMsg                = 0;
  98.     cmDefaultMsg                = 1;
  99. {    messages for Setup DefProc    }
  100.     cmSpreflightMsg                = 0;
  101.     cmSsetupMsg                    = 1;
  102.     cmSitemMsg                    = 2;
  103.     cmSfilterMsg                = 3;
  104.     cmScleanupMsg                = 4;
  105. {    messages for scripting defProc    }
  106.     cmMgetMsg                    = 0;
  107.     cmMsetMsg                    = 1;
  108. {    messages for localization defProc    }
  109.     cmL2English                    = 0;
  110.     cmL2Intl                    = 1;
  111.  
  112. { private data constants }
  113.     cdefType                    = 'cdef';                        { main connection definition procedure }
  114.     cvalType                    = 'cval';                        { validation definition procedure }
  115.     csetType                    = 'cset';                        { connection setup definition procedure }
  116.     clocType                    = 'cloc';                        { connection configuration localization defProc }
  117.     cscrType                    = 'cscr';                        { connection scripting defProc interfaces }
  118.     cbndType                    = 'cbnd';                        { bundle type for connection }
  119.     cverType                    = 'vers';
  120.  
  121.  
  122. TYPE
  123.     CMDataBuffer = RECORD
  124.         thePtr:                    Ptr;
  125.         count:                    LONGINT;
  126.         channel:                CMChannel;
  127.         flags:                    CMFlags;
  128.     END;
  129.     CMDataBufferPtr = ^CMDataBuffer;
  130.  
  131.     CMCompletorRecord = RECORD
  132.         async:                    BOOLEAN;
  133.         completionRoutine:        ConnectionCompletionUPP;
  134.     END;
  135.     CMCompletorPtr = ^CMCompletorRecord;
  136.  
  137. {    Private Data Structure    }
  138.     CMSetupStruct = RECORD
  139.         theDialog:                DialogPtr;
  140.         count:                    INTEGER;
  141.         theConfig:                Ptr;
  142.         procID:                    INTEGER;                                { procID of the tool    }
  143.     END;
  144.     CMSetupPtr = ^CMSetupStruct;
  145.  
  146.  
  147. {$ALIGN RESET}
  148. {$POP}
  149.  
  150. {$SETC UsingIncludes := ConnectionToolsIncludes}
  151.  
  152. {$ENDC} {__CONNECTIONTOOLS__}
  153.  
  154. {$IFC NOT UsingIncludes}
  155.  END.
  156. {$ENDC}
  157.